package book_management.operation.impl;

import book_management.book.BookList;
import book_management.operation.IOperation;

public class FindOperation implements IOperation {
    @Override
    public void work(BookList bookList) {
        System.out.println("您现在进行的是书籍的查找操作");
        System.out.println("请输入书籍名称:");
        String name = scanner.next();

        if(bookList.isContains(name)){
            bookList.findBook(name);
            System.out.println("该书存在~");
        }else {
            System.out.println("该书不存在！");
        }
    }
}
